/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaBuscarClienteNuevaVenta.java
 *
 * Created on 25/09/2011, 17:10:41
 */

package interfacesGraficas;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JToolBar;

/**
 *
 * @author eduardo
 */
public class PantallaBuscaClienteNuevaVenta extends javax.swing.JFrame {

    /** Creates new form PantallaBuscarClienteNuevaVenta */
    public PantallaBuscaClienteNuevaVenta() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        grupoBuscaCleintes = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        botonBuscarCliente = new javax.swing.JButton();
        campoNCliente = new javax.swing.JTextField();
        campoNombreCliente = new javax.swing.JTextField();
        radioButonNCliente = new javax.swing.JRadioButton();
        radioButonNombreCliente = new javax.swing.JRadioButton();
        jToolBar1 = new javax.swing.JToolBar();
        botonAgregarClienteNuevaVenta = new javax.swing.JButton();
        botonSalirClienteNuevaVenta = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaBuscaClienteNuevaVenta = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jPanel1.setToolTipText("Agregar Cliente");
        jPanel1.setLayout(new java.awt.GridBagLayout());
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jPanel1, gridBagConstraints);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar Clientes"));
        jPanel2.setLayout(new java.awt.GridBagLayout());

        botonBuscarCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Search-20.png"))); // NOI18N
        botonBuscarCliente.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 20, 0, 30);
        jPanel2.add(botonBuscarCliente, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 10, 0, 0);
        jPanel2.add(campoNCliente, gridBagConstraints);

        campoNombreCliente.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 10, 0, 0);
        jPanel2.add(campoNombreCliente, gridBagConstraints);

        grupoBuscaCleintes.add(radioButonNCliente);
        radioButonNCliente.setSelected(true);
        radioButonNCliente.setText("Nº Cliente:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 15, 0, 0);
        jPanel2.add(radioButonNCliente, gridBagConstraints);

        grupoBuscaCleintes.add(radioButonNombreCliente);
        radioButonNombreCliente.setText("Nombre Cliente:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 15, 15, 0);
        jPanel2.add(radioButonNombreCliente, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 15, 0, 0);
        getContentPane().add(jPanel2, gridBagConstraints);

        jToolBar1.setRollover(true);

        botonAgregarClienteNuevaVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        botonAgregarClienteNuevaVenta.setFocusable(false);
        botonAgregarClienteNuevaVenta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonAgregarClienteNuevaVenta.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonAgregarClienteNuevaVenta);

        botonSalirClienteNuevaVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalirClienteNuevaVenta.setToolTipText("Salir");
        botonSalirClienteNuevaVenta.setFocusable(false);
        botonSalirClienteNuevaVenta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalirClienteNuevaVenta.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonSalirClienteNuevaVenta);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jToolBar1, gridBagConstraints);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Clientes"));

        tablaBuscaClienteNuevaVenta.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaBuscaClienteNuevaVenta);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 50;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(15, 15, 0, 10);
        getContentPane().add(jPanel3, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonAgregarClienteNuevaVenta;
    private javax.swing.JButton botonBuscarCliente;
    private javax.swing.JButton botonSalirClienteNuevaVenta;
    private javax.swing.JTextField campoNCliente;
    private javax.swing.JTextField campoNombreCliente;
    private javax.swing.ButtonGroup grupoBuscaCleintes;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JRadioButton radioButonNCliente;
    private javax.swing.JRadioButton radioButonNombreCliente;
    private javax.swing.JTable tablaBuscaClienteNuevaVenta;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonAgregarClienteNuevaVenta() {
        return botonAgregarClienteNuevaVenta;
    }

    public void setBotonAgregarClienteNuevaVenta(JButton botonAgregarClienteNuevaVenta) {
        this.botonAgregarClienteNuevaVenta = botonAgregarClienteNuevaVenta;
    }

    public JButton getBotonBuscarCliente() {
        return botonBuscarCliente;
    }

    public void setBotonBuscarCliente(JButton botonBuscarCliente) {
        this.botonBuscarCliente = botonBuscarCliente;
    }

    public JButton getBotonSalirClienteNuevaVenta() {
        return botonSalirClienteNuevaVenta;
    }

    public void setBotonSalirClienteNuevaVenta(JButton botonSalirClienteNuevaVenta) {
        this.botonSalirClienteNuevaVenta = botonSalirClienteNuevaVenta;
    }

    public JTextField getCampoNCliente() {
        return campoNCliente;
    }

    public void setCampoNCliente(JTextField campoNCliente) {
        this.campoNCliente = campoNCliente;
    }

    public JTextField getCampoNombreCliente() {
        return campoNombreCliente;
    }

    public void setCampoNombreCliente(JTextField campoNombreCliente) {
        this.campoNombreCliente = campoNombreCliente;
    }

    public ButtonGroup getGrupoBuscaCleintes() {
        return grupoBuscaCleintes;
    }

    public void setGrupoBuscaCleintes(ButtonGroup grupoBuscaCleintes) {
        this.grupoBuscaCleintes = grupoBuscaCleintes;
    }

    public JPanel getjPanel1() {
        return jPanel1;
    }

    public void setjPanel1(JPanel jPanel1) {
        this.jPanel1 = jPanel1;
    }

    public JPanel getjPanel2() {
        return jPanel2;
    }

    public void setjPanel2(JPanel jPanel2) {
        this.jPanel2 = jPanel2;
    }

    public JPanel getjPanel3() {
        return jPanel3;
    }

    public void setjPanel3(JPanel jPanel3) {
        this.jPanel3 = jPanel3;
    }

    public JRadioButton getjRadioButton1() {
        return radioButonNCliente;
    }

    public JRadioButton getRadioButonNCliente() {
        return radioButonNCliente;
    }

    public void setRadioButonNCliente(JRadioButton radioButonNCliente) {
        this.radioButonNCliente = radioButonNCliente;
    }

    public JRadioButton getRadioButonNombreCliente() {
        return radioButonNombreCliente;
    }

    public void setRadioButonNombreCliente(JRadioButton radioButonNombreCliente) {
        this.radioButonNombreCliente = radioButonNombreCliente;
    }

   

    public JScrollPane getjScrollPane1() {
        return jScrollPane1;
    }

    public void setjScrollPane1(JScrollPane jScrollPane1) {
        this.jScrollPane1 = jScrollPane1;
    }

    public JToolBar getjToolBar1() {
        return jToolBar1;
    }

    public void setjToolBar1(JToolBar jToolBar1) {
        this.jToolBar1 = jToolBar1;
    }

    public JTable getTablaBuscaClienteNuevaVenta() {
        return tablaBuscaClienteNuevaVenta;
    }

    public void setTablaBuscaClienteNuevaVenta(JTable tablaBuscaClienteNuevaVenta) {
        this.tablaBuscaClienteNuevaVenta = tablaBuscaClienteNuevaVenta;
    }

    
}
